package com.zhuoyue.system.service;


import com.zhuoyue.common.core.domain.ServiceResult;
import com.zhuoyue.common.core.domain.entity.SysThirdData;

/**
 * 激光推送
 *
 * @author Administrator
 */
public interface JPushService {

    public final static String APP_KEY = "23e551e97ab373c498275125";

    public final static String MASTER_SECRET = "284ac4957b7c2b64881a5788";

    /**
     * 给所有平台的所有用户发通知
     *
     * @param title
     * @param message
     * @param extrasType
     * @param extrasContent
     * @return
     * @throws Exception
     */
    public ServiceResult sendAll(String title, String message, String messageType, String extrasType, String extrasContent, String organisation)
            throws Exception;


//	public ServiceResult sendAll(String title, String message, String extrasType, String extrasContent,boolean contentAvailable)
//			throws Exception;

    /**
     * 给所有平台的一个用户发送信息
     *
     * @param title
     * @param message
     * @param messageType
     * @param alias
     * @param extrasType
     * @param extrasContent
     * @param userId
     * @return
     * @throws Exception
     */
    ServiceResult send(String title, String message, String messageType, String alias, String extrasType,
                       String extrasContent, String userId, String sourceType, SysThirdData sysThirdData) throws Exception;

	/*public ServiceResult sendNoSave(String title, String message, String messageType, String alias, String extrasType,
                                    String extrasContent, String userId, String sourceType, String organiztion) throws Exception;*/
//
//	public ServiceResult send(String title, String message, String messageType, String alias, String extrasType,
//							  String extrasContent, String userId,boolean contentAvailable) throws Exception;

    /**
     * 安卓推送
     *
     * @param sysThirdData
     * @param extrasType
     * @param userId
     * @param title
     * @param content
     * @param messageType
     * @param sourceId
     * @return
     */
    ServiceResult sendAndroid(SysThirdData sysThirdData, String extrasType, String userId, String title, String content, String messageType, String sourceId) throws Exception;

    ServiceResult sendIos(SysThirdData sysThirdData, String extrasType, String userId, String title, String content, String messageType, String sourceId) throws Exception;
}
